Page({
  data: {
    // Page data properties
  },
  
  // Lifecycle functions
  onLoad() {
    // Hide TabBar when page loads
    wx.hideTabBar();
    wx.setNavigationBarTitle({
        title: '派单中 (已通知 15 人)'
    });
  },
  
  // Navigation
  goBack() {
    wx.navigateBack();
  },
  
  // Order actions
  cancelOrder() {
    wx.showModal({
      title: '提示',
      content: '确定取消订单吗？',
      success: (res) => {
        if (res.confirm) {
          // Handle order cancellation logic
          console.log('用户确认取消订单');
          // Call API to cancel order
        }
      }
    });
  }
});
